package cn.good.yan.controller.t5;

import cn.good.yan.service.t5.GuavaService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 布隆过滤器 Guava  - 演示
 *
 * @author shengren.yan
 * @create 2023-11-27
 */
@RestController
@RequestMapping("/t5")
@Slf4j
public class GuavaBloomFilterController {

    @Autowired
    private GuavaService guavaService;

    @ApiOperation("guava布隆过滤器插入100万样本数据，额外10w（110w）测试是否存在")
    @GetMapping("/guava")
    public void guava() {
        guavaService.guava();
    }

}
